/*
 * PwmCtl.h
 *
 *  Created on: 2021��7��25��
 *      Author: vicent-PC
 */

#ifndef MAIN_POWER_CTL_PWM_H_
#define MAIN_POWER_CTL_PWM_H_

#include <hal/utils/Singleton.h>

class PwmCtl:public Singleton<PwmCtl> {
   public:
    PwmCtl();
    virtual ~PwmCtl();
    int init(int gpio);
    int run();
    int runOn();
    int runOff();
    float setDuty(float percent);
    float setDuty1000(float percent1000);
};

#endif /* MAIN_POWER_CTL_PWM_H_ */
